package com.appwoo.txtws.wheel.widget;

import android.app.Activity;
import android.app.AlertDialog.Builder;
import android.app.DatePickerDialog;
import android.app.DatePickerDialog.OnDateSetListener;
import android.app.ProgressDialog;
import android.app.TimePickerDialog;
import android.app.TimePickerDialog.OnTimeSetListener;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import android.net.Uri;
import android.text.format.Time;
import com.appwoo.txtws.app.App;
import java.util.Calendar;

public class WidgetDialogHelper
{
  public static final String APP_MARKET_URL = "market://details?id=com.besprout.golf#?t=W251bGwsMSwxLDIxMiwiY29tLmJlc3Byb3V0LmdvbGYiXQ..";

  public static void showAbortUpgradeDialog(String paramString, DialogInterface.OnClickListener paramOnClickListener)
  {
    App.buildDialog().setTitle("Upgrade").setMessage(paramString).setPositiveButton("Upgrade", new DialogInterface.OnClickListener()
    {
      public void onClick(DialogInterface paramAnonymousDialogInterface, int paramAnonymousInt)
      {
        Intent localIntent = new Intent("android.intent.action.VIEW", Uri.parse("market://details?id=com.besprout.golf#?t=W251bGwsMSwxLDIxMiwiY29tLmJlc3Byb3V0LmdvbGYiXQ.."));
        App.getCurrentActivity().startActivity(localIntent);
      }
    }).setNegativeButton("Later", paramOnClickListener).show();
  }

  public static void showAppUpgradeDialog()
  {
    App.buildDialog().setTitle("Upgrade").setMessage("Please upgrade to the latest version of FGI via the Android Market.").setPositiveButton("Upgrade", new DialogInterface.OnClickListener()
    {
      public void onClick(DialogInterface paramAnonymousDialogInterface, int paramAnonymousInt)
      {
        Intent localIntent = new Intent("android.intent.action.VIEW", Uri.parse("market://details?id=com.besprout.golf#?t=W251bGwsMSwxLDIxMiwiY29tLmJlc3Byb3V0LmdvbGYiXQ.."));
        App.getCurrentActivity().startActivity(localIntent);
      }
    }).show();
  }

  public static void showDatePicker(Time paramTime, DatePickerDialog.OnDateSetListener paramOnDateSetListener)
  {
    new DatePickerDialog(App.getCurrentActivity(), paramOnDateSetListener, paramTime.year, paramTime.month, paramTime.monthDay).show();
  }

  public static void showDatePicker(Calendar paramCalendar, DatePickerDialog.OnDateSetListener paramOnDateSetListener)
  {
    new DatePickerDialog(App.getCurrentActivity(), paramOnDateSetListener, paramCalendar.get(1), paramCalendar.get(2), paramCalendar.get(5)).show();
  }

  public static ProgressDialog showProgressDialog(String paramString1, String paramString2, boolean paramBoolean)
  {
    return ProgressDialog.show(App.getCurrentActivity(), paramString1, paramString2, paramBoolean, true);
  }

  public static void showTimePicker(Time paramTime, TimePickerDialog.OnTimeSetListener paramOnTimeSetListener)
  {
    new TimePickerDialog(App.getCurrentActivity(), paramOnTimeSetListener, paramTime.hour, paramTime.minute, false).show();
  }

  public static void showTimePicker(Calendar paramCalendar, TimePickerDialog.OnTimeSetListener paramOnTimeSetListener)
  {
    new TimePickerDialog(App.getCurrentActivity(), paramOnTimeSetListener, paramCalendar.get(10), paramCalendar.get(12), false).show();
  }
}

/* Location:           C:\Documents and Settings\Administrator\classes_dex2jar.jar
 * Qualified Name:     com.appwoo.txtws.wheel.widget.WidgetDialogHelper
 * JD-Core Version:    0.6.2
 */